package com.ruoyi.back.domain

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.Date
import javax.persistence.*

@ApiModel("系统通知参数")
@Entity
@Table(name = "fly_system_notice")
@TableName("fly_system_notice")
data class SystemNotice(

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id 更新的时候需要传递")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    var id: Long? = null,

    @ApiModelProperty("通知标题")
    var title: String? = null,

    @ApiModelProperty("通知内容")
    var content: String? = null,

    @ApiModelProperty("封面图")
    var frontPic:String? = null,

    @ApiModelProperty("发送用户类型")
    var sendUserType: Int? = null,

    @ApiModelProperty("发送给单个时用户id")
    var singleUserId: Long? = null,

    @ApiModelProperty("是否跳转")
    var skipBool: Boolean? = false,

    @ApiModelProperty("跳转链接")
    var skipUrl: String? = null,

    @ApiModelProperty("定时发送时间")
    var timingSend: String? = null,

    @ApiModelProperty("发送时间", hidden = true)
    var sendTime: Date? = null,

    @ApiModelProperty("是否已发送", hidden = true)
    var send: Boolean? = false,
)
